package com.yuke.cloud.service.pmc.service;

import com.yuke.cloud.service.api.pmc.dto.ProdSpecInfoDto;
import com.yuke.cloud.service.pmc.dto.*;
import com.yuke.cloud.service.pmc.entity.ProdProduct;
import com.yuke.cloud.common.core.support.IService;

import java.util.List;


/**
 * Created by zys on 2018/09/27.
 */
public interface ProdProductService extends IService<ProdProduct> {
    List<ProdProductInfoDto> getListsByCondition(ConditionDto conditionDto, Integer page, Integer size);
    ProdProductDto getProdByProductId(Long specId);
    List<ProdProduct> getListByCondition(ProdProduct prodProduct);
    void updateBySpecId(ProdProduct prodProduct, List<ProdSpecDto> prodSpecDtos);

    void saveAllInfo(ProdProduct prodProduct, List<ProdSpecDto> prodSpecDtos);
    void saveUpdateInfo(ProdProduct prodProduct, List<ProdSpecDto> prodSpecDtos);

    List<ProdSpecInfoAndPriceDto> getProdByCategoryId(Long categoryId);

    List<ProdSpecInfoAndPriceDto> getProdByRegionId(Long regionId);
    //api
    List<ProdSpecInfoDto> getProdNameByProductId(List<Long> productIds);

    void  deleteByProductId(Long productId);

}
